/*
 * @Author: bear
 * @Date: 2022-08-01 09:56:18
 * @LastEditors: bear
 * @LastEditTime: 2022-08-02 13:25:07
 * @Description: your project
 * @version: 1.0
 */
module.exports = {
  pluginOptions: {
    electronBuilder: {
      nodeIntegration: true,
      builderOptions: {
        productName: "桌面端", //不要出现中文，除非你Apache支持中文路径
        // "appId": "com.xxx.xxx",
        copyright: "Copyright © 2022 electron-builder Demo",
        nsis: {
          perMachine: true,
          oneClick: false, // 是否一键安装
          allowToChangeInstallationDirectory: true, // 允许用户选择安装位置
        },
        win: {
          target: [
            "nsis", // 打包为nsis安装文件
            // 'zip' // 打包为安装文件zip
          ],
          // icon: "./public/favicon.ico",
        },
        releaseInfo: {
          releaseNotes: "更新的内容说明", // 更新的内容
        },
        publish: [
          {
            provider: "generic",
            url: "http://localhost/release/", //更新服务器地址,可为空
          },
        ],
      },
    },
  },
};
